import Layout from '@/layout'
import parentView from '@/layout/components/AppMain'
export default [
  {
    path: '/finance',
    name: 'finance',
    meta: {
      icon: 'md-cloud-upload',
      title: '财务中心'
    },
    component: Layout,
    children: [
      {
        path: 'report',
        name: 'report',
        meta: {
          icon: 'ios-document',
          title: '财务报表'
        },
        component: parentView,
        children: [
          {
            path: 'financialData',
            name: 'financialData',
            meta: {
              icon: 'ios-document',
              title: '财务数据'
            },
            component: () => import('@/views/finance/report/financialData')
          },
          {
            path: 'loanRecord',
            name: 'loanRecord',
            meta: {
              icon: 'ios-document',
              title: '放款记录'
            },
            component: () => import('@/views/finance/report/loanRecord')
          },
          {
            path: 'repaymentRecord',
            name: 'repaymentRecord',
            meta: {
              icon: 'ios-document',
              title: '还款记录'
            },
            component: () => import('@/views/finance/report/repaymentRecord')
          },
          {
            path: 'accountMonitoring',
            name: 'accountMonitoring',
            meta: {
              icon: 'ios-document',
              title: '支付平台账户监测'
            },
            component: () => import('@/views/finance/report/accountMonitoring')
          }
        ]
      },
      {
        path: 'management',
        name: 'management',
        meta: {
          icon: 'ios-document',
          title: '财务管理台'
        },
        component: parentView,
        children: [
          {
            path: 'loanList',
            name: 'loanList',
            meta: {
              icon: 'ios-document',
              title: '放款管理'
            },
            component: () => import('@/views/finance/management/loanList')
          },
          {
            path: 'repayList',
            name: 'repayList',
            meta: {
              icon: 'ios-document',
              title: '还款管理'
            },
            component: () => import('@/views/finance/management/repayList')
          },
          {
            path: 'repaymentNotice',
            name: 'repaymentNotice',
            meta: {
              icon: 'ios-document',
              title: '还款告知'
            },
            component: () => import('@/views/finance/management/repaymentNotice')
          }
        ]
      }
    ]
  }
]
